package ace.cmp.util;

import org.apache.commons.lang3.RandomStringUtils;

/**
 * @author Caspar
 */
public final class AceRandomStringUtils {
  private static final char[] DEFAULT_ALPHA_NUMERIC_CHAR = "abcde2345678gfynmnpwx".toCharArray();

  public static String randomAlphanumeric(int count) {
    return RandomStringUtils.random(
        count, 0, DEFAULT_ALPHA_NUMERIC_CHAR.length, true, true, DEFAULT_ALPHA_NUMERIC_CHAR);
  }

  public static String randomAlphabetic(int count) {
    return RandomStringUtils.randomAlphabetic(count);
  }

  public static String randomNumeric(int count) {
    return RandomStringUtils.randomNumeric(count);
  }
}
